<template>
  <section class="h100 keFu-panel">

    <van-row class="header-panel">
      {{ faqData['title'] }}
      <div class="arrow" @click="goBack()">
        <van-icon name="arrow-left"/>
      </div>
    </van-row>
    <van-row class="panel-content">
      <div v-html="faqData['content']"></div>
    </van-row>
  </section>
</template>

<script>

export default {
  data() {
    return {
      faqData: "",
      contentData: "",
    }
  },
  created() {
    this.getLoad();
  },
  methods: {
//初始化加载
    getLoad() {
      let queryData = this.$route.query;
      let faqId = queryData.faqId;
      let params = {
        id: faqId,
      }
      this.$http(window.config.webHomeApiV2 + '/kf/faq_detail', params).then((res) => {
        let code = res.code;
        if (code !== 1) {
          this.BRToast(res.msg);
          return;
        }
        this.faqData = res.data;
        this.contentData = res.data.content;
      });
    },
    //返回
    goBack() {
      this.$router.push('/KeFu/main');
    },

  }
};
</script>

<style lang='less'>
@import "../../assets/css/keFu/index.less";
</style>
